network_event object

int type
Determines the type of event that is being received. This can be any of the following values:
The default value for this property is event_none. This property cannot be modified from the script.

uint peer_id
The unique ID of the peer to whom the event relates. This is valid for all events except EVENT_NONE, and is set to 0 otherwise. This property cannot be modified from the script.

int channel
The channel on which the event was received. This is only valid for events of type EVENT_RECEIVE, and is set to 0 otherwise.

string message
The message that was received. This is only valid for events of type EVENT_RECEIVE, and is an empty string otherwise. This property cannot be modified from the script.